<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/page.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录页面</title>
<script type="text/javascript"
	src="${rootpath }/common/jquery-3.0.0.min.js"></script>
<script type="text/javascript">
	function test() {
		var aa = $("#nameid").val();
		alert("输入的手机号是"+aa);
		$.post("yanzheng.htm", {
			"nameid" : aa
		}, function(result) {
			$("#spanid").html(result);

		})

	}
</script>

</head>
<body>
	<table align="center">
		<tr>
			<form action="${rootpath }/loginSubmit.htm" method="post">
				<input id="nameid" type="text" name="name"
					value="${requestScope.name }">用户名 <br> <input
					type="password" name="password" value="">密码 <br> <input
					type="text" name="rand" value="">验证码 <br> <input
					type="submit" name="" value="提交">
			</form>
			<br> ${requestScope.info }
			<button onclick="test()">获取验证码</button>
			<br>
			<span id="spanid"></span>


		</tr>

	</table>

</body>
</html>